package com.crm.constant;


import com.crm.constant.dto.ResultCode;

/**
 * @author : CRM_SYSTEM
 * @date : 2022/03/28 14:07
 */
public class BusinessException extends RuntimeException{
    /**
     * 自定义异常Code
     */
    private int exceptionCode;
    /**
     * 自定义异常内容
     */
    private String exception;
    public BusinessException(){ }
    public BusinessException(String exception){
        this.exceptionCode= ResultCode.EXCEPTION.getCode();
        this.exception=exception;
    }
    public BusinessException(int exceptionCode,String exception){
        this.exceptionCode=exceptionCode;
        this.exception=exception;
    }
    public int getExceptionCode() {
        return exceptionCode;
    }
    public void setExceptionCode(int exceptionCode) {
        this.exceptionCode = exceptionCode;
    }
    public String getException() {
        return exception;
    }
    public void setException(String exception) {
        this.exception = exception;
    }
}
